function Teach(classes, klass) {
  this.classes = classes;
  this.klass = klass;
}

Teach.prototype = {
  show : function() {
    this.showClasses();
  },

  showClasses : function() {
    var t = $("#classes #class_list")
    for (var i in this.classes) {
      var c = this.classes[i];
    }
  },

  showClassDetails : function(klass) {
    $("#class_details h3").html(klass.title);
    this.showClassNavigation();
  },

  showClassNavigation : function() {
    var tabs = $("#class_navigation a div");
    tabs.removeClass("active");
    var active = tabs.filter(function() {
      return this.innerHTML.trim().toLowerCase() == "students";
    });
    active.addClass("active");
  },

  getClass : function(id) {
    for (var i = 0; i < this.classes.length; i++) {
      if (this.classes[i].id == id) {
        return this.classes[i];
      }
    }
    return null;
  }
};

function Class(klass) {
  this.id = klass.id;
  this.title = klass.title;
}

Class.prototype = {
  
};

